package org.longteng.security.jwtkeys;


/**
 * token生成的公钥私钥串
 */
public class JwtTokenKey {

    String privateKeyBase64;  // 私钥
    String publicKeyBase64;  // 公钥

    /**
     * 生成
     * @param publicKey
     * @param privateKey
     * @return
     */
    public static JwtTokenKey buildKey(String publicKey, String privateKey ) {
        JwtTokenKey tokenKey = new JwtTokenKey();
        tokenKey.setPublicKeyBase64(publicKey);
        tokenKey.setPrivateKeyBase64(privateKey);
        return tokenKey;
    }

    public String getPrivateKeyBase64() {
        return privateKeyBase64;
    }

    public void setPrivateKeyBase64(String privateKeyBase64) {
        this.privateKeyBase64 = privateKeyBase64;
    }

    public String getPublicKeyBase64() {
        return publicKeyBase64;
    }

    public void setPublicKeyBase64(String publicKeyBase64) {
        this.publicKeyBase64 = publicKeyBase64;
    }
}
